package com.imclient.message;


public  class Message{
	
	/**
	 * 
	 */

	private Header[] Headers;
	

	public Header[] getHeaders() {
		return Headers;
	}

	public void setHeaders(Header[] headers) {
		Headers = headers;
	}

	private   byte[] body;
	
	
	public byte[] getBody() {
		return body;
	}

	public void setBody(byte[] body) {
		this.body = body;
	}

	public  String getHeader(String key){
		if(Headers!=null&&Headers.length>0){
			for(Header h:Headers){
				if(h.getKey().equals(key)){
					return h.getValue();
				}
			}
			
		}
		return null;
	}
	
	
	

}
